

<%@ page import="mms.MedicineCompany" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'medicineCompany.label', default: 'MedicineCompany')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
          <js:thickbox/>
        <g:javascript src="medicineCompany/edit.js" />
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${medicineCompanyInstance}">
            <div class="errors">
                <g:renderErrors bean="${medicineCompanyInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${medicineCompanyInstance?.id}" />
                <g:hiddenField name="version" value="${medicineCompanyInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="medicineCompany.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value require ${hasErrors(bean: medicineCompanyInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${medicineCompanyInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="loginName"><g:message code="medicineCompany.loginName.label" default="Login Name" /></label>
                                </td>
                                <td valign="top" class="value require ${hasErrors(bean: medicineCompanyInstance, field: 'loginName', 'errors')}">
                                    <g:textField name="loginName" maxlength="20" value="${medicineCompanyInstance?.loginName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="password"><g:message code="medicineCompany.password.label" default="Password" /></label>
                                </td>
                                <td valign="top" class="value require ${hasErrors(bean: medicineCompanyInstance, field: 'password', 'errors')}">
                                    <g:textField name="password" maxlength="10" value="${medicineCompanyInstance?.password}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="address"><g:message code="medicineCompany.address.label" default="Address" /></label>
                                </td>
                                <td valign="top" class="value require ${hasErrors(bean: medicineCompanyInstance, field: 'address', 'errors')}">
                                    <g:textField name="address" value="${medicineCompanyInstance?.address}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="contact"><g:message code="medicineCompany.contact.label" default="Contact" /></label>
                                </td>
                                <td valign="top" class="value require ${hasErrors(bean: medicineCompanyInstance, field: 'contact', 'errors')}">
                                    <g:textField name="contact" value="${medicineCompanyInstance?.contact}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="incorporator"><g:message code="medicineCompany.incorporator.label" default="Incorporator" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'incorporator', 'errors')}">
                                    <g:select name="incorporator.id"  from="${medicineCompanyInstance.incorporator ?[medicineCompanyInstance.incorporator] : []}"  optionKey="id" value="${medicineCompanyInstance?.incorporator?.id}"  />
                                <a href="javascript:" id="createIncorporator"><img src="${resource(dir:'images',file:'add.png')}"  alt="add" border="0" /></a> 
                                <a href="javascript:" id="searchIncorporator"><img src="${resource(dir:'images',file:'search.png')}"  alt="search" border="0" /></a> 
                                <a href="javascript:" id="deleteIncorporator"><img src="${resource(dir:'images',file:'delete.png')}"  alt="delete" border="0" /></a> 

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="manager"><g:message code="medicineCompany.manager.label" default="Manager" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'manager', 'errors')}">
                                    <g:select name="manager.id" from="${medicineCompanyInstance.manager ?[medicineCompanyInstance.manager] : []}"  optionKey="id" value="${medicineCompanyInstance?.manager?.id}" />
                                    <a href="javascript:" id="createManager"><img src="${resource(dir:'images',file:'add.png')}"  alt="add" border="0" /></a> 
                                    <a href="javascript:" id="searchManager"><img src="${resource(dir:'images',file:'search.png')}"  alt="search" border="0" /></a> 
                                    <a href="javascript:" id="deleteManager"><img src="${resource(dir:'images',file:'delete.png')}"  alt="delete" border="0" /></a> 
                                </td> 
                            </tr>
                                                    
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="quality"><g:message code="medicineCompany.quality.label" default="Quality" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'quality', 'errors')}">
                                    <g:select name="quality.id" from="${medicineCompanyInstance.quality ?[medicineCompanyInstance.quality] : []}" optionKey="id" value="${medicineCompanyInstance?.quality?.id}"  />
                                <a href="javascript:" id="createQuality"><img src="${resource(dir:'images',file:'add.png')}"  alt="add" border="0" /></a> 
                                <a href="javascript:" id="searchQuality"><img src="${resource(dir:'images',file:'search.png')}"  alt="search" border="0" /></a> 
                                <a href="javascript:" id="deleteQuality"><img src="${resource(dir:'images',file:'delete.png')}"  alt="delete" border="0" /></a> 

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="level"><g:message code="medicineCompany.level.label" default="Level" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'level', 'errors')}">
                                   
                                     <g:radioGroup name="level"   labels="${medicineCompanyInstance.constraints.level.inList}"  values="${medicineCompanyInstance.constraints.level.inList}"  value="${medicineCompanyInstance.level}" >
                                    <span>${it.label}: ${it.radio}</span>&nbsp;&nbsp;&nbsp;
                                    </g:radioGroup>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sellOfYear"><g:message code="medicineCompany.sellOfYear.label" default="Sell Of Year" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'sellOfYear', 'errors')}">
                                    <g:textField name="sellOfYear" value="${medicineCompanyInstance?.sellOfYear}" />
                                </td>
                            </tr>
                        
                       
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="licence"><g:message code="medicineCompany.licence.label" default="Licence" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'licence', 'errors')}">
                                    <g:textField name="licence" value="${medicineCompanyInstance?.licence}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="licenceIssue"><g:message code="medicineCompany.licenceIssue.label" default="Licence Issue" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'licenceIssue', 'errors')}">
                                    <g:textField name="licenceIssue" value="${medicineCompanyInstance?.licenceIssue}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="medicalProducts"><g:message code="medicineCompany.medicalProducts.label" default="Medical Products" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'medicalProducts', 'errors')}">
                                    <g:textField name="medicalProducts" value="${medicineCompanyInstance?.medicalProducts}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="medicalProductsIssue"><g:message code="medicineCompany.medicalProductsIssue.label" default="Medical Products Issue" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'medicalProductsIssue', 'errors')}">
                                    <g:textField name="medicalProductsIssue" value="${medicineCompanyInstance?.medicalProductsIssue}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="area"><g:message code="medicineCompany.area.label" default="Area" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'area', 'errors')}">
                                    <g:textField name="area" value="${medicineCompanyInstance?.area}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nature"><g:message code="medicineCompany.nature.label" default="Nature" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'nature', 'errors')}">
                                    <g:textField name="nature" value="${medicineCompanyInstance?.nature}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="scopeOfBusiness"><g:message code="medicineCompany.scopeOfBusiness.label" default="Scope Of Business" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'scopeOfBusiness', 'errors')}">
                                    <g:textArea name="scopeOfBusiness" cols="40" rows="5" value="${medicineCompanyInstance?.scopeOfBusiness}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="GSPLicence"><g:message code="medicineCompany.GSPLicence.label" default="GSPL icence" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: medicineCompanyInstance, field: 'GSPLicence', 'errors')}">
                                    <g:textField name="GSPLicence" value="${medicineCompanyInstance?.GSPLicence}" />
                                </td>
                            </tr>

                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
